package com.slipper.system.organization.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.slipper.system.api.organization.bo.OrganizationBO;

/**
 * 组织机构信息表
 * 
 * @date 2020-03-26 14:59:54
 */
public interface OrganizationDao {
    
    int insert(OrganizationBO bo);
    
    int update(OrganizationBO bo);
    
    int delete(OrganizationBO bo);

    OrganizationBO queryBy(@Param("id") String id);
    
    List<OrganizationBO> queryList(OrganizationBO bo);
    
    int queryCntBy(@Param("parentId") String parentId, @Param("shortName") String shortName);

    OrganizationBO queryByName(OrganizationBO bo);

    int insertList(@Param("list") List<OrganizationBO> list);

    int updateValid(OrganizationBO bo);
}
